home *** CD-ROM | disk | FTP | other *** search
- Path: news.IT.net!news
- From: gema001@pn.itnet.it (Antonio Romeo)
- Newsgroups: comp.lang.c++
- Subject: Re: Is there a standard for * and & placement style?
- Date: 27 Feb 1996 15:58:44 GMT
- Organization: CyberPress
- Message-ID: <4gv9nk$4p2@alpha.it.net>
- References: <3128BD31.4AF8@wildfire.com> <marnoldDn27q9.Is0@netcom.com> <4gckd5$bc7@clarknet.clark.net> <marnoldDn63vB.H6n@netcom.com> <4gihqq$1s9@ns1.arlut.utexas.edu>
- NNTP-Posting-Host: gema001.pn.itnet.it
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- >...
- >-- use intelligent variable names
- >...
-
- a bit more on this:
-
- intelligent variables names are meaningfull names.
- So
-
- int i; /* loop counter */
-
- ...
-
- for (i=0;i<MAX; i++)
- MakeOnArray(arrayname[i]);
- ...
-
- does not is a good name. In a loop, i is the current processed element
- of an array, the next or the previous?
- Another good practice is to not make
- assumption on variable values after al loop, expecialli in a FOR
- statement. This is true for every language I know. The variable value
- after a loop depend on compiler (not language) decision.
-
-
- Good work
-
- Antonio Romeo - Rome - Italy
- gema001@pn.itnet.it
-
-
-